package extends4modifier;

public class Test2 {
    //目标：继承后子类的访问特点，就近原则。

    public static void main(String[] args) {
        Zi zi = new Zi();
        zi.show();
    }
}

    class Fu
    {
        String name = "fu的name";
    }

    class Zi extends Fu
    {
        String name = "zi的name";
        public void show()
        {
            String name = "show的name";
            System.out.println(name);
            System.out.println(this.name);
            System.out.println(super.name);
        }
    }


